package com.pai4j.aigc.context.repository.dao;

import com.pai4j.aigc.context.entity.ChatMemorySummaryEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IChatMemorySummaryDAO extends JpaSpecificationExecutor<ChatMemorySummaryEntity>, JpaRepository<ChatMemorySummaryEntity, Long> {

    List<ChatMemorySummaryEntity> findBySessionIdOrderByIdDesc(String sessionId);
}
